package cn.qpyl.longpoll.vertx;

import io.vertx.core.AbstractVerticle;

public class Main extends AbstractVerticle {
    public static void main(String[] args) {
        System.out.println("Vertx main");
        Runner.runExample(Main.class);
    }

    @Override
    public void start() throws Exception {
        vertx.createHttpServer().requestHandler(req -> {
            req.response().putHeader("content-type", "application/json").end("{}");
        }).listen(9000, "0.0.0.0");
    }
}